package com.lin.testgit;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;


public class TestController {

    //测试提交和推回滚

    public static void main(String[] args) {
        int i = 3;
        System.out.println("不等于3跳过我这个断点");
        System.out.println("等于3进我这个断点");
        System.out.println("不管什么情况都不会进我这个断点");

        String os = "原始字符串";
        String de = "无关紧要的字符串";

        System.out.println(os);
        System.out.println(de);

        List<String> list = Arrays.asList("张三","李四","赵五","万五","王五");
        List<String> collect = list.stream()
                .filter(s -> s.contains("五"))
                .map(s -> s = s.replaceAll("五", "六"))
                .sorted().collect(Collectors.toList());
        System.out.println(collect);

        test1();
        test2();


    }

    public static void test1(){
        System.out.println("进入方法了");
    }

    public static void test2(){
        System.out.println("进入方法了--->test2");
    }

}
